require File.join(File.dirname(__FILE__),"..","lib","core","twilolia")
require File.join(File.dirname(__FILE__),"helpers","config_store")
require 'pp'

config = ConfigStore.new(File.join(File.dirname(__FILE__),"config","config.yml"))

Twilolia.api_url = 'laohaang85.appspot.com/api'
httpauth = Twilolia::HTTPAuth.new(config['username'],config['password'],{:api_version => false})
pp "#{config['username']} ... #{config['password']}"

base = Twilolia::Base.new(httpauth)

pp base.home_timeline
